<?php

// Page title
echo "<H1>Top-Level Dashboard: All Workflows</H1>";

//// Action buttons
//$action = "dashboard1.php";
//$form_name = "data_form";
//echo "<p><b>Actions</b>";
//echo "<br><input id='poo' type='submit' value='Start Glass Reception Workflow' onClick='javascript:$form_name.action=\"glass_reception_dashboard.php\";submit();'>";
//echo "<br><input id='poo' type='submit' value='Start Glass Cleaning Workflow' onClick='javascript:$form_name.action=\"glass_cleaning_dashboard.php\";submit();'>";
//echo "<br><input id='poo' type='submit' value='Start Deposition Workflow' onClick='javascript:$form_name.action=\"deposition_dashboard.php\";submit();'>";
//echo "<br><input id='poo' type='submit' value='Start ?Grids? Workflow' onClick='javascript:$form_name.action=\"grids_dashboard.php\";submit();'>";

// *****************
// *****TABLE1 *****
// *****************
	echo "<p>All Processes:";	
	echo "<table border=4>";
	
	// Header
	echo "  <tr><th>Workflow</th><th>Status</th><th>Details</th><th>Actions</th></tr>";
	
	echo "  <tr><td>Glass Reception</td><td>done</td><td><a href=glass_reception_dashboard.php>click</a></td></tr>";
	echo "  <tr><td>Glass Cleaning</td><td>done</td><td><a href=glass_cleaning_dashboard.php>click</a></td></tr>";
	echo "  <tr><td>Deposition</td><td>done</td><td><a href=deposition_dashboard.php>click</a></td></tr>";
	echo "  <tr><td>?Grids?</td><td>done</td><td><a href=grids_dashboard.php>click</a></td></tr>";
	
	// reliability testing
	echo "<tr><td>Reliability Testing</td>";
	echo "<td>done</td>";
	echo "<td><a href=grids_dashboard.php>click</a></td></tr>";
	
	// data analysis
	echo "<tr><td>Data Analysis</td>";
	echo "<td>running</td>";
	echo "<td><a href=data_analysis_dashboard.php>click</a></td>";
	echo "<td><a href=data_analysis_dashboard.php>start</a> / <a href=data_analysis_dashboard.php>stop</a></td>";
	echo "</tr>";
	
	echo "</table>";
	
// *****************
// *****TABLE2 *****
// *****************
	echo "<p>Running Processes:";	
	echo "<br><table border=4>";
	
	// Header
	echo "  <tr><th>Workflow</th><th>Status</th><th>Details</th><th>Actions</th></tr>";
	
	echo "  <tr><td>Glass Reception</td><td>done</td><td><a href=glass_reception_dashboard.php>click</a></td></tr>";
	echo "  <tr><td>Glass Cleaning</td><td>done</td><td><a href=glass_cleaning_dashboard.php>click</a></td></tr>";
	echo "  <tr><td>Deposition</td><td>done</td><td><a href=deposition_dashboard.php>click</a></td></tr>";
	echo "  <tr><td>?Grids?</td><td>done</td><td><a href=grids_dashboard.php>click</a></td></tr>";
	
	// reliability testing
	echo "<tr><td>Reliability Testing</td>";
	echo "<td>done</td>";
	echo "<td><a href=grids_dashboard.php>click</a></td></tr>";
	
	// data analysis
	echo "<tr><td>Data Analysis</td>";
	echo "<td>running</td>";
	echo "<td><a href=data_analysis_dashboard.php>click</a></td>";
	echo "<td><a href=data_analysis_dashboard.php>start</a> / <a href=data_analysis_dashboard.php>stop</a></td>";
	echo "</tr>";
	
	echo "</table>";


?>
